<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
	   <base href="<%=basePath%>">
	   <title> 用户登陆页面  </title>	   
	   <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>	   
	   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	   
     <script type="text/javascript">		   
		    function register(){
		      location.href='Login/toRegister';
		     }		     		        					
     </script>
	 <style type="text/css">                   
	     table {	           	           
	            background-image: url(<%=basePath%>/img/blue.jpg);               												
				position:absolute; /*绝对定位*/ 
				top:42%; /*距顶部35%*/ 
				left:46%; 
				margin:-100px 0 0 -150px; /*设定这个div的margin-top的负值为自身的高度的一半,margin-left的值也是自身的宽度的一半的负值.*/ 
				width:460px; /*宽为360,那么margin-top为-180px*/ 
				height:260px; /*高为220那么margin-left为-110px;*/ 
				z-index:99; /*浮动在最上层 */ 
				}
				 							
	     .body{    
			      background-image: url(<%=basePath%>/img/blueworld.jpg);    			        
			    }				  				        
	 </style>	
	</head>
<body class="body">
<div>
   <div align="center"><h5>${error0 }</h5><br></div>
     
   <form id="userForm" action="Login/doLogin" method="post"><br>
     <table  align="center">
       <tr align="center">
          <td align="center">
         
          <h2>用户登录</h2> 
          <hr>
          <br>
	                      账号：<input type="text" id="username" name="username" value="${username }" size="21" /><br/><br>
	                     
	                      密码：<input type="password" id="password" name="password" value="${password }" size="21"/><br><br>
	          
	                      用户类型： <select name="usertype" id="usertype">
	                      <option value=""></option> 
				          <option value="manager">manager</option>
					      <option value="user">user</option>
				  </select><br><br>   
	           <input id="remember" value="1" type="checkbox" name="remember" />	           
	           <label for="remember">记住密码</label>&nbsp;&nbsp;
	           <input type="submit" value="登陆" />&nbsp;&nbsp;
	           <input type="button" value="注册" onclick="register()"/>   <br><br>       
          </td>
       </tr>
     </table> 
   </form><br>
     
</div>

</body>
</html> 